﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.Dto
{
    /// <summary>
    /// 数据库表格类
    /// </summary>
    public class ArchiveTable
    {
        /// <summary>
        /// 表名称
        /// </summary>
        public string? tName { get; set; }

        /// <summary>
        /// 字段集合
        /// </summary>
        public List<ColumnList> column { get; set; }
    }

    public class ColumnList
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string? columnName { get; set; }

        /// <summary>
        /// 字段类型
        /// </summary>
        public string? columnType { get; set; }

        /// <summary>
        /// 是否是主键
        /// </summary>
        public bool? columnIsKey { get; set; }

        /// <summary>
        /// 是否可为空
        /// </summary>
        public bool? columnIsNull { get; set; }

        /// <summary>
        /// 字段备注
        /// </summary>
        public string? columnComment { get; set; }
    }
}
